package com.neuedu.his.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.neuedu.his.entity.Department;
import com.neuedu.his.mapper.DepartmentMapper;

@Service
@Transactional
public class DepartmentServiceImpl implements DepartmentService{
	
	@Autowired
	private DepartmentMapper dao;
	
	@Override
	public List<Department> selectAll(Department u) {
		return dao.selectAll(u);
	}

	@Override
	public Department selectById(Department u) {
		return dao.selectById(u);
	}

	@Override
	public int add(Department u) {
		return dao.add(u);
	}

	@Override
	public int delete(Department u) {
		return dao.delete(u);
	}
}
